home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 121
/
FreelogMagazineJuilletAout2014-No121.iso
/
Outils
/
Adobe-Air
/
adobe-air_13.exe
/
[0]
/
setup.swf
/
scripts
/
mx
/
events
/
ValidationResultEvent.as
< prev
Wrap
Text File
|
2014-03-27
|
1KB
|
52 lines
package mx.events
{
import flash.events.Event;
import mx.core.mx_internal;
use namespace mx_internal;
public class ValidationResultEvent extends Event
{
public static const INVALID:String = "invalid";
mx_internal static const VERSION:String = "3.0.0.0";
public static const VALID:String = "valid";
public var results:Array;
public var field:String;
public function ValidationResultEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:String = null, param5:Array = null)
{
super(param1,param2,param3);
this.field = param4;
this.results = param5;
}
public function get message() : String
{
var _loc1_:String = "";
var _loc2_:int = results.length;
var _loc3_:int = 0;
while(_loc3_ < _loc2_)
{
if(results[_loc3_].isError)
{
_loc1_ += _loc1_ == "" ? "" : "\n";
_loc1_ += results[_loc3_].errorMessage;
}
_loc3_++;
}
return _loc1_;
}
override public function clone() : Event
{
return new ValidationResultEvent(type,bubbles,cancelable,field,results);
}
}
}